<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp" %>
<html>
<head>
<script type="text/javascript" src="${ctx }/scripts/public3.js"></script>
<script type="text/javascript" src="${ctx }/pages/com/ce/pms/house/proRightModification/proRight.js" ></script>
<script>


	/**
	 * 功能描述: 打开选房窗口
	 */
	function openSelectHouse(){
		var ownerUrl = PROJECT_NAME_PATH_MYCE + "/customer_chooseSingleHouseAction.do?method=chooseBuildingMain";
		ownerUrl += "&parentFrameId=goOutAddWinIfm";
		ownerUrl += "&isOwnerName=withOwnerName";
		top.windowOpen(ownerUrl , "chooseBuildFrm", "${key.select_house}",500,800);
	}

	/**
	 * 功能描述: 打开选择移交物品窗口
	 */
	function openGoodsHandOver(){
		var url =PROJECT_NAME_PATH_MYCE+ "/house_proRightModificationAction.do?method=initGoodsHandOver&parentFrameId=goOutAddWinIfm";
		top.windowOpen(url,"chooseGoods","${key.choose_handover_goods}",250,350,false,"chooseGoodsIfm");
	}

	/**
	 * 功能描述：打开选择审核人的窗口
	 * @param type 审核人类型 0-费用审核人 1-退伙手续审核人
	 */
	function openChooseAssessor(type){ //打开选人的界面
		var houseId = $('houseId').value;
		if (houseId == null || houseId == ""){
			Alert(" 请先选择房间！");
			return ;
		}

		var methodName  = "";
		if (type == 0){ //费用审核人
			methodName = "setChangeAssessorInfo";
		}else if (type == 1){ //退伙手续审核人
			methodName = "setOutAssessorInfo";
		}

	  	var url = "${ctx}/common_employeeQuery.do?method=initSelectPsrsonMain";
	  	url += "&frameName=goOutAddWinIfm";
	  	url += "&callBack="+methodName;
	  	url += "&multiple=false";
		top.windowOpen(url, "selectPerson", "选择审核人", 550, 700,true,"selectPerson");
	}


	/**
	 * 功能描述: Ajax请求的回调函数,把请求的结果显示在页面中
	 */
	function setHouseInfo(houseId,houseNum){
		document.getElementById("houseId").value = houseId;
		document.getElementById("houseNumber").value = houseNum;
		$('houseNumber').fireEvent("onblur")
	}

     /**
    * 功能描述： 如果房号验证成功，根据房号返回该房屋需要显示在界面上的信息
    */
    function setOwnerAndMeterDate(response,input){
       var url = "${ctx}/house_proRightModificationAction.do?method=getOwnerNameAndMeterData";
		new Ajax.Request(url,
			         { method:'post',
					   parameters:{houseNumber:input.value},
					   onSuccess:back
					 }
					);
     }

	function back(response){
   		var json = response.responseText;
   		json = eval("("+json+")");
   		 //业主姓名
   		$('tdCustomerName').innerHTML=json.owner;
   		$('clients').value=json.owner;
   		$('houseId').value=json.houseId;
   		if(json.type001.lastReading != null){
   			$('spLastWater').innerHTML = FormatNumber(json.type001.lastReading,2)+"　${key.waterUnit}";
   		}
   		$('copyMeterWaterPreReading').value= FormatNumber(json.type001.lastReading,2);
   		//上次抄表电表读数

		if(json.type002.lastReading != null){
   			$('spLastAmmeter').innerHTML=FormatNumber(json.type002.lastReading,2) + "　${key.ammterUnit}";
   		}
   		$('copyMeterAmmeterPreReading').value=json.type002.lastReading;

   		/*//入伙日期
   		$('inDate').value=json.inDate;
                       document.getElementById("outDate").setAttribute('validateMessage',"${key.outDate_exception}"+json.inDate);
   		*/
   		compareTowMeter();
	}



     /**
       * 功能描述： 如果当前输入的值小于上次值，抄表异常必填
       */
       function compareTowMeter(){
			if($('readmeter1').checked){
           //上次水表的读数
           var lastWaterValue=$('copyMeterWaterPreReading').value;
           //本次水表的读数
           var currentWaterValue=$('copyMeterWaterReading').value;
           //上次电表的读数
           var lastAmmeterValue=$('copyMeterAmmeterPreReading').value;
           //本次水表读数
           var currentAmmeterValue=$('copyMeterAmmeterReading').value;
			//把各表读数转换为数字
           if(!isNaN(lastWaterValue)){
              lastWaterValue = eval(lastWaterValue);
           }
           if(!isNaN(currentWaterValue)){
             currentWaterValue=eval(currentWaterValue);
           }
           if(!isNaN(lastAmmeterValue)){
             lastAmmeterValue=eval(lastAmmeterValue);
           }
           if(!isNaN(currentAmmeterValue)){
             currentAmmeterValue=eval(currentAmmeterValue);
           }
           //如果上次抄表水表和电表都不为空,比较输入值下上次抄表值
           if(!isNaN(lastWaterValue) && !isNaN(lastAmmeterValue)){
				if(isNaN(currentWaterValue) || isNaN(currentAmmeterValue) || (currentWaterValue < lastWaterValue) || (currentAmmeterValue < lastAmmeterValue))
				{
				 	 $('meterReason').className="aux_intable_require";
            	//	 Validation.changeElmValidate("copyMeterReasonId","select-one-required");
             		 //$('copyMeterReasonDesc').value=$('copyMeterReasonId').options[1].desc;
             		 if($('copyMeterReasonId').selectedIndex <= 0)
             		 validationAlert("selectCopyMeterReason",true,"${key.this_meter_less_than_last_meter}");
				}
			   else{
             		$('meterReason').className="aux_intable_td2";
             		//Validation.changeElmValidate("copyMeterReasonId","");
             		validationAlert("selectCopyMeterReason",false,"${key.this_meter_less_than_last_meter}");

          		}
           }
           }
       }
     /**
      * 功能描述： 如果房号验证失败，清除上次选房时间信息
      */
      function clearCustomerName(){
          $('tdCustomerName').innerHTML="";
          $('clients').value="";
          $('copyMeterWaterPreReading').value="";
          $('copyMeterAmmeterPreReading').value;
          $('spLastWater').innerHTML="";
          $('spLastAmmeter').innerHTML="";
          $('inDate').value="";

      }
      /**
    * 功能描述:如果入伙日期为空,不能填退伙日期
	* @param validObj 验证的对象
	* @param focusObj 获焦对象
	*/
/*	function getFocus(validObj,focusObj){
		if($(validObj).value.trim() == ""){
			$(focusObj).focus();
		}
	}
	*/

	/**
	 * 功能描述：根据不同的抄表选项显示不同的异常选择标签样式
	 * @author 张红丽
	 * @param reasonId 下拉框标签的td Id
	 * @param sel      下拉框的Id
	 * @param input    关联的文本框 Id
	 * @param selStyle 下拉框的样式
	 * @param tabStyle 标签的td样式,selStyle选择标签的样式
	 */
	 function changeStyle(reasonTd,sel,input,focusInput,tdStyle,selStyle){

		var eventSource=Event.element(event);
	   	$(reasonTd).className=tdStyle;
	   	if(!selStyle){
	   		//Validation.changeElmValidate(sel,"");
	   		$(sel).selectedIndex=0;
	   		$(input).value="";
	   		$(input).readOnly=true;
	   		$(focusInput).focus();
	   	}else{
	   		//Validation.changeElmValidate(sel,selStyle);
	   		//$(sel).selectedIndex=1;
			//$(input).value=$(sel).options[1].desc;

			$(sel).selectedIndex=0;
			$(input).value="";
			$(input).readOlny=false;

	   	}
	   	if(eventSource.name == "readmeter" && eventSource.value == 0 ){
		   validationAlert('selectCopyMeterReason',false);
		  if($('copyMeterReasonId').selectedIndex == 0){
		  	validationAlert("selectCopyMeterReason",true,"${key.meter_reason_exception}");
		  }
		}
		else if(eventSource.name == "readmeter" && eventSource.value == 1){
			validationAlert("selectCopyMeterReason",false,"${key.meter_reason_exception}");
		}
		else if(eventSource.name == "checkHouse" && eventSource.value == 0)
		{
			if($('checkReasonId').selectedIndex == 0){
				validationAlert("selectCheckHouseReason",true,"${key.check_house_reason_exception}");
			}
		}
		else if(eventSource.name == "checkHouse" && eventSource.value == 1){
		   validationAlert("selectCheckHouseReason",false,"${key.check_house_reason_exception}");
		}
		else if(eventSource.name == "handoverGoods" && eventSource.value == 0){
		    if($('handoverReasonId').selectedIndex == 0){
				validationAlert("selectHandoverReason",true,"${key.handover_reason_exception}");
		    }
		}
		else if(eventSource.name == "handoverGoods" && eventSource.value == 1){
			validationAlert("selectHandoverReason",false,"${key.handover_reason_exception}");
		}
	 }

               /**
                * 功能描述： 初始化退伙申请表页面信息
                */
               function init(){
                 $('outDate').value="${currentDate}";
                 $('sysCurrentDate').value="${currentDate}";
                 $('copyTime').value="${currentDate}";
                 $('handoverDate').value="${currentDate}"
                 $('checkDate').value="${currentDate}";
                 $('houseNumber').focus();
                 $('copyMeterReasonDesc').readOnly=true;
                 $('checkReasonDesc').readOnly = true;
                 $('handoverReasonDesc').readOnly=true;
                 initMeterSelect();
				}

				/**
				 * 功能描述: 初始化异常下拉框
				 */

			   function initMeterSelect(){
			   //抄表异常
			   var size = "${meterReasonListSize}";
			   var metherOptions = $('copyMeterReasonId').options;
			  	 <c:forEach var="item" items="${meterReasonList }">
			  	   for(var i = 0 ; i<= size;i++ ){
			  	     if(metherOptions[i].value=="${item.id}"){
			  	        metherOptions[i].desc="${item.description}";
			  	     }
			  	   }
				 </c:forEach>
				 //验房异常
				 var checkHouseSize = "${checkHouseReasonListSize}";
				 var checkHouseOptions = $('checkReasonId').options;
				<c:forEach var="item" items="${checkHouseReasonList }">
			  	   for(var i = 0 ; i<= checkHouseSize;i++ ){
			  	     if(checkHouseOptions[i].value=="${item.id}"){
			  	        checkHouseOptions[i].desc="${item.description}";
			  	     }
			  	   }
				 </c:forEach>

				//移交物品
				var handoverSize = "${handoverReasonListSize}";
				var handoverOptions = $('handoverReasonId').options;
				<c:forEach var="item" items="${handoverReasonList}">
			  	   for(var i = 0 ; i<= handoverSize;i++ ){
			  	     if(handoverOptions[i].value=="${item.id}"){
			  	        handoverOptions[i].desc="${item.description}";
			  	     }
			  	   }
				 </c:forEach>
			   }

</script>
</head>

<body onload="init();">
  <form id="addGoOutForm" name="addGoOutForm" method="post" action="${ctx}/house_proRightModificationAction.do?method=addGoOut" class="required-validate">
  <input type="submit" id="mySubmit" style="display:none">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="${ctx }/images/ico_Advance.gif" width="16" height="16" align="absmiddle"> <span class="window_head_intext">${key.add_go_out_examine }</span></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td class="aux_header_line_1"></td>
    </tr>
    <tr>
      <td class="aux_header_line_2"></td>
    </tr>
    <tr>
      <td valign="middle" class="content">

	  <div  style="height:410px;overflow:auto;">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="container_in_show">
        <tr>
          <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" id="tab_subMenu1">
            <tr>
              <td><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
                <tr>
                  <td><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">
                    <tr>
                      <td colspan="4" class="aux_titletable">${key.proposer }</td>
                    </tr>

                    <tr>

                      <td class="aux_intable_td1">${key.house_number }：</td>
                      <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td>
                          <input name="houseId" id="houseId" type="hidden" value=""  />
						  <input name="sysCurrentDate" id="sysCurrentDate" type="hidden" value="" />
                          <input name="houseNumber" id="houseNumber" type="text" value="" maxlength="36" class="required validate-ajax" size="16"
                          		 onSuccess="setOwnerAndMeterDate" onFailure="clearCustomerName"
                          		 validateUrl="${ctx}/house_proRightModificationAction.do?method=validationHouseNumber"  afterInsert="houseNumberSpan"/>
                          </td>
                          <td width="4">&nbsp;</td>
                          <td><a href="#"  onClick="openSelectHouse();"onFocus="this.blur()"><img src="${ctx }/images/ico_houesno.GIF" alt="${key.click_choose_house_number }" border="0"></a><span id="houseNumberSpan"></span></td>
                        </tr>
                      </table></td>
                      <td class="aux_intable_td1">${key.out_date }：</td>
                      <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>
                            <input name="inDate" id="inDate" type="hidden" value="" />
                            <input name="outDate"  id="outDate" type="text" class="required validate-date less-equals-than-sysCurrentDate"   value="" size="16" validateMessage="${key.outDate_exception }" afterInsert="outDateSpan"/></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgOutDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"><span id="outDateSpan"></span></td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td class="aux_intable_td1">${key.owner }：</td>
                      <td class="aux_intable_td2"><span id="tdCustomerName"></span></td>
                      <td class="aux_intable_td1">

                      <input type="hidden" name="clients" id="clients" value=""/></td>
                      <td class="aux_intable_td2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td colspan="4" class="aux_titletable">${key.last_copy_data }</td>
                    </tr>
                    <tr>
                      <td class="aux_intable_td1">${key.water_data }：</td>
                      <td class="aux_intable_td2">

                      <span id="spLastWater"></span>
					  <input type="hidden" id="copyMeterWaterPreReading" name="copyMeterWaterPreReading"  value="" />
                      </td>
                      <td class="aux_intable_td1">${key.ammter_data }：</td>
                      <td class="aux_intable_td2">
                      <input type="hidden" name="copyMeterAmmeterPreReading" id="copyMeterAmmeterPreReading" value=""/>
                      <span id="spLastAmmeter"></span></td>
                    </tr>
                    <tr>
                      <td colspan="4" class="aux_titletable"> ${key.this_copy_data }&nbsp;　&nbsp;　&nbsp;　
                                <input name="readmeter" id="readmeter1" type="radio" value="1" checked="checked"  onClick="display('table01','show');changeStyle('meterReason','copyMeterReasonId','copyMeterReasonDesc','copyMeterWaterReading','aux_intable_td2');" >
                                  ${key.record_meter_data }                                &nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp;
                                  <input type="radio" name="readmeter" id="readmeter0" value="0" onClick="display('table01','hidden');changeStyle('meterReason','copyMeterReasonId','copyMeterReasonDesc','copyMeterWaterReading','aux_intable_require','select-one-required');" >
                        ${key.not_record_meter_data }</td>
                    </tr>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="table01" style="display:show">
						<tr>
                        <td class="aux_intable_td1">${key.water_data }：</td>
                        <td class="aux_intable_require">
                        	<input name="copyMeterWaterReading" id="copyMeterWaterReading" type="text" onblur="compareTowMeter();"
                         		   class="required integer-decimal-range-10-2  not-equals-than-copyMeterWaterPreReading" maxLength="13" value="" size="16" validateMessage="${key.not_equals_than_preReading }"  afterInsert="copyWaterSpan"/>
                        ${key.waterUnit }<span id="copyWaterSpan"></span></td>
                        <td class="aux_intable_td1">${key.ammter_data }：</td>
                        <td class="aux_intable_require">
                        	<input name="copyMeterAmmeterReading" id="copyMeterAmmeterReading" type="text"  onblur="compareTowMeter();"
                       		 	   class=" required integer-decimal-range-10-2 not-equals-than-copyMeterAmmeterPreReading" maxLength="13" value="" size="16"   validateMessage="${key.not_equals_than_preReading }"  afterInsert="copyAmmterSpan"/>
                          ${key.ammterUnit }<span id="copyAmmterSpan"></span></td>
                      </tr>
                      <tr>
                        <td class="aux_intable_td1">${key.copy_meter_date }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input name="copyTime" id="copyTime" type="text" class="required validate-date less-equals-than-sysCurrentDate great-equals-than-outDate" value="" size="16" validateMessage="${key.copy_meter_date_exception }" afterInsert="copyTimeSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgCopyMeterDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"><span id="copyTimeSpan"></span></td>
                          </tr>
                        </table></td>
                        <td class="aux_intable_td1"></td>
                        <td class="aux_intable_td2"></td>
                      </tr>

                    </tbody>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="table02">
                      <tr>
                        <td class="aux_intable_td1">${key.exception_name }：</td>
                        <td class="aux_intable_td2" id="meterReason">
                         <pms:unitedSelect id="copyMeterReasonId"
                                            selectText="${key.select_text }"
                                            style="width:114px"
											name="copyMeterReasonId"
											dataList="${meterReasonList}"
											optionLabel="name"
											optionValue="id"
											className=""
											onChange="changeSelect('copyMeterReasonDesc',this,this.selectedIndex);clearValidate('selectCopyMeterReason',this,'readmeter0','${key.meter_reason_exception }');"
											>
										</pms:unitedSelect><span id="selectCopyMeterReason"></span>
								    </td>
                        <td class="aux_intable_td1">${key.exception_description }：</td>
                        <td class="aux_intable_td2">
                          <input name="copyMeterReasonDesc" id="copyMeterReasonDesc" type="text"  value="" size="16" maxLength="500">                       </td>
                      </tr>
                    </tbody>
                    <tr>
                      <td colspan="4" class="aux_titletable"> ${key.check_house }&nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp; &nbsp; &nbsp;　
                         <input name="checkHouse" type="radio" id="checkHouse1" value="1" checked="checked"  onClick="display('tb03','show');changeStyle('checkHouseReason','checkReasonId','checkReasonDesc','houseDesc','aux_intable_td2');" >
                         ${key.check_house }                         &nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp; &nbsp;　&nbsp;　&nbsp;　&nbsp;&nbsp;
                         <input type="radio" name="checkHouse" id="checkHouse0" value="0" onClick="display('tb03','hidden');changeStyle('checkHouseReason','checkReasonId','checkReasonDesc','houseDesc','aux_intable_require','select-one-required');" >
                        ${key.not_check_house }</td>
                    </tr>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tb03" style="display:show">
                      <tr>
                        <td valign="top" class="aux_intable_td1">${key.check_house_description }：</td>
                        <td colspan="3" valign="top" class="aux_intable_require_more">
                        <textarea name="houseDesc" id="houseDesc" cols="55" rows="4" class="required max-lengthB-300" onKeyDown='if (this.value.length>=300 && event.keyCode != 8 && event.keyCode != 46){event.returnValue=false}'></textarea></td>
                      </tr>
                      <tr>
                        <td class="aux_intable_td1">${key.checker }：</td>
                        <td class="aux_intable_require"><input name="checker" id="checker" type="text" class="required   validate-char" value="" size="16" maxLength="36">                        </td>
                        <td class="aux_intable_td1">${key.check_house_date }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input name="checkDate" id="checkDate" type="text" class="required validate-date less-equals-than-sysCurrentDate great-equals-than-outDate" value=" " size="16" validateMessage="${key.check_house_date_exception }" afterInsert="checkDateSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgCheckHouseDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"><span id="checkDateSpan"></span></td>
                          </tr>
                        </table></td>
                      </tr>
                    </tbody>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tb04">
                      <tr>
                        <td class="aux_intable_td1">${key.exception_name }：</td>
                        <td class="aux_intable_td2" id="checkHouseReason"> <pms:unitedSelect id="checkReasonId"
                                            selectText="${key.select_text }"
                                            style="width:114px"
											name="checkReasonId"
											dataList="${checkHouseReasonList}"
											optionLabel="name"
											optionValue="id"
											className=""
											onChange="changeSelect('checkReasonDesc',this,this.selectedIndex);clearValidate('selectCheckHouseReason',this,'checkHouse0','${key.check_house_reason_exception }');"
											 >
										</pms:unitedSelect><span id="selectCheckHouseReason"></span>           </td>
                         <td class="aux_intable_td1">${key.exception_description }：</td>
                        <td class="aux_intable_td2">
                          <input name="checkReasonDesc" id="checkReasonDesc" type="text" class="inputtext" maxlength="500" onchange="" value="" size="16">                       </td>
                      </tr>
                    </tbody>
                    <tr>
                      <td colspan="4" class="aux_titletable"> ${key.handover_goods }&nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp;&nbsp; &nbsp; &nbsp;
                                   <input name="handoverGoods" id="handoverGoods1" type="radio" value="1" checked="checked"  onClick="display('tab05','show');changeStyle('handoverGoodsReason','handoverReasonId','handoverReasonDesc','goods','aux_intable_td2');" />
                                   ${key.has_handover_goods }                                &nbsp;　&nbsp;　&nbsp;　&nbsp;　&nbsp;　
                                   <input type="radio" name="handoverGoods" id="handoverGoods0" value="0" onClick="display('tab05','hidden');changeStyle('handoverGoodsReason','handoverReasonId','handoverReasonDesc','goods','aux_intable_require','select-one-required');" >
                        ${key.has_no_handover_goods }</td>
                    </tr>
                    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tab05" style="display:show">
                      <tr>
                        <td class="aux_intable_td1">${key.handover_goods }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>
                     	    <input name="goodIds" id="goodIds" type="hidden" value="" />
                            <input name="goods" id="goods" readOnly="true" type="text" class="required" value="" size="16" afterInsert="goodsSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><a href="#" onClick="openGoodsHandOver();"onFocus="this.blur()"><img src="${ctx }/images/ico_custom-mume.GIF" width="16" height="16" border="0"></a><span id="goodsSpan"></span></td>
                          </tr>
                        </table></td>
                        <td class="aux_intable_td1">${key.handover_goods_date }：</td>
                        <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input name="handoverDate" id="handoverDate" type="text" class="required validate-date less-equals-than-sysCurrentDate great-equals-than-outDate" value="" size="16"  validateMessage="${key.handover_goods_date_exception }" afterInsert="handoverDateSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><img id="imgGoodsHandOverDate" src="${ctx }/images/ico_clock_month.gif" width="20" height="20"><span id="handoverDateSpan"></span></td>
                          </tr>
                        </table></td>
                      </tr>
                    </tbody>
				    <tbody colspan="4" width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color" id="tab06">
                       <tr>
                        <td class="aux_intable_td1">${key.exception_name }：</td>
                        <td class="aux_intable_td2" id="handoverGoodsReason"><pms:unitedSelect id="handoverReasonId"
                                            selectText="${key.select_text }"
                                            style="width:114px"
											name="handoverReasonId"
											dataList="${handoverReasonList}"
											optionLabel="name"
											optionValue="id"
											className=""
											onChange="changeSelect('handoverReasonDesc',this,this.selectedIndex);clearValidate('selectHandoverReason',this,'handoverGoods0','${key.handover_reason_exception }');"
											 >
										</pms:unitedSelect><span id="selectHandoverReason"></span></td>
                        <td class="aux_intable_td1">${key.exception_description }：</td>
                        <td class="aux_intable_td2">
                          <input name="handoverReasonDesc" id="handoverReasonDesc" type="text" class="inputtext" maxlength="500" value="" size="16">                       </td>
                      </tr>
                    </tbody>
					 <tr>
                      <td colspan="4" class="aux_titletable">${key.choose_examiner }</td>
                    </tr>
                    <tr>
                      <td class="aux_intable_td1">${key.charge_examiner }：</td>
                      <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td>
                          <input type="hidden" name="chargeCheckerId" id="chargeCheckerId" value="" />
                          <input name="chargeChecker" id="chargeChecker" readOnly="true" type="text" class="required  validate-ajax"
                          validateUrl="" size="16"  validateMessage="${key.not_purview_exception }" afterInsert="chargeCheckerSpan" ></td>
                          <td width="4">&nbsp;</td>
                          <td><a href="#"  onClick="openChooseAssessor(0);" onFocus="this.blur()"><img src="${ctx }/images/ico_cz.gif" width="16" height="16" border="0" ></a><span id="chargeCheckerSpan"></span></td>
                        </tr>
                      </table></td>
                      <td class="aux_intable_td1">${key.go_out_examiner }：</td>
                      <td class="aux_intable_require"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td>
                            <input type="hidden" name="outCheckerId" id="outCheckerId" value="" />
                            <input name="outChecker" id="outChecker" readOnly="true" type="text" class="required validate-ajax"
                             validateUrl="" value="" size="16" validateMessage="${key.not_purview_exception }" afterInsert="outCheckerSpan"></td>
                            <td width="4">&nbsp;</td>
                            <td><a href="#"  onClick="openChooseAssessor(1);"onFocus="this.blur()"><img src="${ctx }/images/ico_cz.gif" width="16" height="16" border="0" ></a><span id="outCheckerSpan"></span></td>
                          </tr>
                      </table></td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      </table>
      </div>

	  </td>
    </tr>
    <tr>
      <td class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_61"></td>
              <td class="buttonOffMiddle" id="btn1_62" onClick="submitForm('addGoOutForm');" onMouseOver="btn_change_over(6)" onMouseOut="btn_change_out(6)" onblur="btn_change(6)"><img src="${ctx }/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom"> ${key.submit }</td>
              <td class="buttonOffRight" id="btn1_63"></td>
            </tr>
          </table></td>
          <td class="btn_between_space"></td>
          <td></td>
          <td class="btn_between_space"></td>
          <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_71"></td>
              <td class="buttonOffMiddle" id="btn1_72" onClick="windowClose();" onMouseOver="btn_change_over(7)" onMouseOut="btn_change_out(7)" onblur="btn_change(7)"><img src="${ctx }/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"> ${key.close }</td>
              <td class="buttonOffRight" id="btn1_73"></td>
            </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
  </form>
 <script type="text/javascript">
             Calendar.setup(
              {
	              inputField : "outDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgOutDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              Calendar.setup(
              {
	              inputField : "copyTime", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgCopyMeterDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              Calendar.setup(
              {
	              inputField : "checkDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgCheckHouseDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "handoverDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgGoodsHandOverDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );

			<%--
                 Calendar.setup(
              {
	              inputField : "endPayDate", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgEndPayDate", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );


			--%>




</script>
</body>
</html>